¡Vamos a crear una función que calculará cuánto pesarían el T-rex y el gatito en la luna!

  • Ve a y arrastra Define Function with Parameters.
  • Cambia el nombre de la función a get_moon_weight.
  • De arrastra Float Variable dentro de la función. Debe tener un ···· en frente de ella.

Float es un número con un punto decimal. Floats son tipos de datos usados en Python, como enteros o strings.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)